<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>
<div class="sidebar" id="sidebar">
    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <a class="btn btn-success" href="__APP__"><i class="icon-signal"></i></a>
            <button class="btn btn-info"> <i class="icon-pencil"></i> </button>
            <button class="btn btn-warning"><i class="icon-group"></i> </button>
            <button class="btn btn-danger"> <i class="icon-cogs"></i></button>
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>
            <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span>
            <span class="btn btn-danger"></span>
        </div>
    </div>
    <ul class="nav nav-list">
        <foreach name="menus" item="row">
             <if condition="$row.mod eq 'index'">
             
                <li <if condition="$row.pid eq $menu_pid && $row.game_code eq $game_code">class="active"</if>>
                    <a href="{$row.url}" >
                        <i class="{$row.icon}"></i>
                        <span class="menu-text"> {$row.name}</span>
                    </a>
                </li>
                <else/>
            <li title='{$row.id}'  <if condition="$row.id eq $menu_pid">class="active open"</if>>
            <a class="dropdown-toggle">
                <i class="{$row.icon}"></i>
                <span class="menu-text"> {$row.name}</span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu">
                <foreach name="row['sub']" item="row2">
                    <li title='{$row2.ord}'  <if condition="$row2['control'] eq $control && $row2['mod'] eq $mod && $detail.id eq ''">class="active"</if>>
                    <a href="{$row2.url}">
                        <i class="icon-double-angle-right"></i>
                        {$row2.name}
                    </a>
                    </li>
                </foreach>
            </ul>
            </li>
            </if>
        </foreach>
    </ul>
    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
    </div>
</div>